<?php
/**
 * @copyright 
 * @license https://opensource.org/licenses/Apache-2.0
 * @link https://www.gougucms.com
 */

namespace app\admin\validate;
use think\Validate;

class OrderValidate extends Validate
{
    protected $rule = [
    'uid' => 'require',
    'device_id' => 'require',
    'wine_num' => 'require',
    'order_no' => 'require',
    'amount' => 'require',
    'address' => 'require',
    'status' => 'require',
    'pay_type' => 'require',
    'pay_status' => 'require',
    'create_time' => 'require',
    'update_time' => 'require',
];

    protected $message = [
    'uid.require' => '用户ID不能为空',
    'device_id.require' => '设备ID不能为空',
    'wine_num.require' => '购酒量(ml)不能为空',
    'order_no.require' => '订单号不能为空',
    'amount.require' => '实付金额不能为空',
    'address.require' => '设备地址不能为空',
    'status.require' => '状态:0待支付 1已支付不能为空',
    'pay_type.require' => '支付方式:1微信 2积分 3兑酒券不能为空',
    'pay_status.require' => '支付状态;0-待支付;1-已支付;2-已退款;3-拒绝退款不能为空',
    'create_time.require' => '创建时间不能为空',
    'update_time.require' => '编辑时间不能为空',
];
}